package com.zhiyizhen.handheld.component.main.api;

import com.zhiyizhen.handheld.component.main.bean.ClinicInfo;
import com.zhiyizhen.handheld.component.main.bean.EnumsBean;
import com.zhiyizhen.handheld.component.main.bean.MenuItemBean;
import com.zhiyizhen.handheld.net.response.ResponseData;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Header;

public interface IMainService {

    @GET("/web/clinic/info/getClinicInfo")
    Observable<ResponseData<ClinicInfo>> getClinicInfo(@Header("token") String token, @Header("clinicId") String clinicId);

    @GET("/web/config/enums/getMap")
    Observable<ResponseData<EnumsBean>> getEnumsMap(@Header("token") String token, @Header("clinicId") String clinicId);

    @GET("/web/clinic/notice/getUnreadNum")
    Observable<ResponseData<Integer>> getUnreadNum(@Header("token") String token, @Header("clinicId") String clinicId);

    @GET("/web/clinic/auth/getMenuList")
    Observable<ResponseData<List<MenuItemBean>>> getMenuList(@Header("token") String token, @Header("clinicId") String clinicId);


}
